<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
    <%@include file="/include/header.html" %>
    <link rel="stylesheet" href="${ctx}/libjs/plugins/h-ui/css/H-ui.admin.css">
    <link rel="stylesheet" href="${ctx}/libjs/plugins/h-ui/style.css">
    <script type="text/javascript" src="${ctx}/appjs/operator/operator.js"></script>
    <style>
        .form-group img {
            cursor: pointer
        }
    </style>
</head>

<script type="text/javascript">
    $('#topLink', window.parent.document).html(function (i, origText) {
        return '<ol class="breadcrumb">' +
            '<li class="breadcrumb-item">' +
            '<a href="">主页</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a>加盟商管理</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<strong>新增加盟商信息</strong>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a href="javascript:window.history.back()"><i class="fa fa-times"></i> 返回</a>' +
            '</li>' +
            '</ol>';
    });

</script>

<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <div class="columns pull-left">
                        <h5 class="font-bold">新增加盟商信息</h5>
                    </div>
                    <div class="ibox-tools">
                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>

                <div class="ibox-content">
                    <form class="form-horizontal m-t layui-form" id="frm">
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">加盟商名称：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" name="operatorName">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">负责人：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" name="contactName" id="contactName">
                            </div>
                        </div>

                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">联系电话：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" name="phone" id="phone">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">所属企业：</label>
                            <div class="col-sm-4">
                                <select id="enterpriseId" name="enterpriseId" class="form-control" placeholder="">
                                    <option value="" selected="selected">请选择</option>
                                    <c:forEach items="${enterpriseList}" var="enterprise">
                                        <option value="${enterprise.enterpriseId}">${enterprise.enterpriseName}</option>
                                    </c:forEach>
                                </select>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">加盟商类型：</label>
                            <div class="col-sm-4">
                                <select id="operatorType" name="operatorType" class="form-control" placeholder="">
                                    <option value="" selected="selected">请选择</option>
                                    <option value="0" >自营</option>
                                    <option value="1">托管</option>
                                    <option value="2">加盟</option>
                                    <option value="3">接口</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">状态：</label>
                            <div class="col-sm-8">
                                <input type="radio" class="form-control" name="status" value="0" title="启用" checked>
                                <input type="radio" class="form-control" name="status" value="1" title="禁用">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-3 col-sm-offset-8 text-right">
                                <button type="submit" class="btn btn-success">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    addOperator.init();
    layui.use(['form', 'jquery', 'tree', 'laydate', 'util'], function () {});

</script>
</body>
</html>
